//war3护甲公式 (护甲*6) / (100+护甲*6)

import { DmgType } from "../types/L_Type"

//法术抗性公式 ((单抗+全抗)*2) / (100+(单抗+全抗)*2)

//法术伤害加成公式  X*N% 直接暴力加成


// constant attacktype         ATTACK_TYPE_NORMAL              : ConvertAttackType(0)
// constant attacktype         ATTACK_TYPE_MELEE               : ConvertAttackType(1)
// constant attacktype         ATTACK_TYPE_PIERCE              : ConvertAttackType(2)
// constant attacktype         ATTACK_TYPE_SIEGE               : ConvertAttackType(3)
// constant attacktype         ATTACK_TYPE_MAGIC               : ConvertAttackType(4)
// constant attacktype         ATTACK_TYPE_CHAOS               : ConvertAttackType(5)
// constant attacktype         ATTACK_TYPE_HERO                : ConvertAttackType(6)



//约束一下config的范围
export type DmgTypeConfigRel=Record<keyof DmgType,{key:keyof DmgType,name:string,cj_dmgtype:number,cj_atktype:number}>

//法术伤害类型
export const DMG_TYPE_CONFIG:DmgTypeConfigRel={
    fire:{key:'fire',name:"火焰",cj_dmgtype:8,cj_atktype:4}, //火焰
    ice:{key:"ice",name:"冰霜",cj_dmgtype:9,cj_atktype:4}, //冰霜
    thunder:{key:"thunder",name:"雷电",cj_dmgtype:10,cj_atktype:4}, //雷电
    earth:{key:"earth",name:"大地",cj_dmgtype:20,cj_atktype:4},  //大地
    poison:{key:"poison",name:"毒",cj_dmgtype:25,cj_atktype:4},  //毒 
    dark:{key:"dark",name:"暗",cj_dmgtype:15,cj_atktype:4},    //暗
    death:{key:"death",name:"死亡/腐朽",cj_dmgtype:18,cj_atktype:4},    //死亡/腐朽
    faith:{key:"faith",name:"信仰",cj_dmgtype:13,cj_atktype:4},    //信仰
    all_nphy_ele:{key:"all_nphy_ele",name:"法术全系",cj_dmgtype:14,cj_atktype:4},  // 物理以外的所有系别
    nothing:{key:"nothing",name:"无",cj_dmgtype:5,cj_atktype:5},    //无属性 一般指代所有物理
    //chop:{key:"chop",name:"斩击"},      //废案 物理 斩击 
    //strike:{key:"strike",name:"打击"},      //废案 物理 打击 (普通攻击)
    //jab:{key:"jab",name:"穿刺"}            //废案 物理 穿刺  (穿刺)
}

